-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Added workflow for publishing the Solr image #303
Conversation
853ab48
to
bf28caf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, however, I would like to provide a suggestion:
- Make sure that the image is rebuild & tested
- If tests are a success then push it
- Make the image build a monthly job
bf28caf
to
e20a578
Compare
Kudos, SonarCloud Quality Gate passed! |
Thanks, those are good suggestions! I will include them in a follow-up to this (coming soon ™️ ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming: let's have here more specific name: gha-docker-solr.yaml
, solr
can lead to many expectations, while the purpose of this is to create image for gha-run tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will include this note in a follow-up as well
RUN rm -rf server/solr/configsets/_default/conf/* | ||
USER solr | ||
COPY --from=builder /home/user/config server/solr/configsets/_default/conf | ||
CMD ["solr-precreate", "collection1"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where this comment ended up, but my question here was if we're able to run multicore tests somehow. collection1
is dedicated to single core tests, while we have several jobs (do we still in core?) testing also multi-core behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The multicore tests are run in the solr package. I believe it should be possible to include them in this repository - and in the Solr image - we would have create different cores.
I wouldn't do this now, can we come back to this after the release?
A little backstory (the way I remember it):
I wrote a little Dockerfile that:
The default Solr config from the Solr image contains some settings that we do not want - for example the managed schema is enabled. To get rid of it I'm deleting everything first - the only configuration that will be used will the one that we provide.
This is combined with a simple Github Actions workflow that can be used to publish the image - so that we won't have to go through this again 🙈
Not done: versioning. The Solr configuration is always taken from master - and the image is always tagged as
latest
. We probably will have to change this in the future, but I don't have a clear way how it should look - and I'd like to make the CI green in this repository before the beta tag.Contains TMP commits that need to be removed:
I have no idea what happened to PHPStan, maybe new version has been released?